package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
import java.util.Date;
@Getter
@Setter
public class Review extends BaseDomain{

    private Travel travel;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

    private boolean state;

    private Long userId;//当前用户id

    private Long travelId;//当前文章id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createtime;//评论创建时间


    private String content;//评论内容

    private User user;//当前文章评论对应的用户


}